package com.pkx.cloud.fse7.dms.dmstoken.service.impl;

import com.pkx.cloud.fse7.dms.dmstoken.entity.DmsToken;
import com.pkx.cloud.fse7.dms.dmstoken.repo.DmsTokenMapper;
import com.pkx.cloud.fse7.dms.dmstoken.service.DmsTokenService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;

/**
 *  服务实现类
 *
 * @author zhangwh
 * @since 2020-10-15
 */
@Service
public class DmsTokenServiceImpl extends ServiceImpl<DmsTokenMapper, DmsToken> implements DmsTokenService {

    /**
     * 分页列表
     *
     * @param dmsToken
     * @return
     */
    @Override
    public Page<DmsToken> pageList(Page page, DmsToken dmsToken) {
        LambdaQueryWrapper<DmsToken> lambdaQueryWrapper = Wrappers.lambdaQuery(DmsToken.class);
        return page(page, lambdaQueryWrapper);
    }

    /**
     * 列表查询
     *
     * @param dmsToken
     * @return
     */
    @Override
    public List<DmsToken> listByEntity(DmsToken dmsToken) {
        LambdaQueryWrapper<DmsToken> lambdaQueryWrapper = Wrappers.lambdaQuery(DmsToken.class);
        return list(lambdaQueryWrapper);
    }

}
